<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>routerdefense.main</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="routerdefense-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/routerdefense/">routerdefense</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="routerdefense-module.html">Package&nbsp;routerdefense</a> ::
        Module&nbsp;main
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="routerdefense.main-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="routerdefense.main-module.html">Module routerdefense.main</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: iso-8859-1 -*-</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-name">__docformat__</tt> <tt class="py-op">=</tt> <tt class="py-docstring">'restructuredtext'</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">'$Id$'</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"># modules imports</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">__builtin__</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">inspect</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">ConfigParser</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">optparse</tt> <tt class="py-keyword">import</tt> <tt class="py-name">OptionParser</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module routerdefense.common=routerdefense.common-module.html"><a title="routerdefense.common" class="py-name" href="#" onclick="return doclink('link-0', 'common', 'link-0');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module routerdefense.metrics=routerdefense.metrics-module.html,Class routerdefense.metrics.metrics=routerdefense.metrics.metrics-class.html"><a title="routerdefense.metrics
routerdefense.metrics.metrics" class="py-name" href="#" onclick="return doclink('link-1', 'metrics', 'link-1');">metrics</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Package routerdefense.engines=routerdefense.engines-module.html"><a title="routerdefense.engines" class="py-name" href="#" onclick="return doclink('link-2', 'engines', 'link-2');">engines</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Package routerdefense.reports=routerdefense.reports-module.html"><a title="routerdefense.reports" class="py-name" href="#" onclick="return doclink('link-3', 'reports', 'link-3');">reports</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-comment"># arguments parsing</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable routerdefense.main.parser=routerdefense.main-module.html#parser"><a title="routerdefense.main.parser" class="py-name" href="#" onclick="return doclink('link-4', 'parser', 'link-4');">parser</a></tt> <tt class="py-op">=</tt> <tt class="py-name">OptionParser</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt id="link-5" class="py-name"><a title="routerdefense.main.parser" class="py-name" href="#" onclick="return doclink('link-5', 'parser', 'link-4');">parser</a></tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"-c"</tt><tt class="py-op">,</tt> <tt class="py-string">"--config"</tt><tt class="py-op">,</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">                  <tt class="py-name">dest</tt> <tt class="py-op">=</tt> <tt class="py-string">"configurationFile"</tt><tt class="py-op">,</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">                  <tt class="py-name">help</tt> <tt class="py-op">=</tt> <tt class="py-string">"Configuration file."</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-6" class="py-name"><a title="routerdefense.main.parser" class="py-name" href="#" onclick="return doclink('link-6', 'parser', 'link-4');">parser</a></tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"-t"</tt><tt class="py-op">,</tt> <tt class="py-string">"--template"</tt><tt class="py-op">,</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">                  <tt class="py-name">dest</tt> <tt class="py-op">=</tt> <tt class="py-string">"templateFile"</tt><tt class="py-op">,</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">                  <tt class="py-name">help</tt> <tt class="py-op">=</tt> <tt class="py-string">"Template file."</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name"><a title="routerdefense.main.parser" class="py-name" href="#" onclick="return doclink('link-7', 'parser', 'link-4');">parser</a></tt><tt class="py-op">.</tt><tt class="py-name">parse_args</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">)</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">3</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">.</tt><tt class="py-name">configurationFile</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt id="link-8" class="py-name"><a title="routerdefense.main.parser" class="py-name" href="#" onclick="return doclink('link-8', 'parser', 'link-4');">parser</a></tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">(</tt><tt class="py-string">"Arguments: no configuration nor template file."</tt><tt class="py-op">)</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-comment"># template parsing</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">    <tt id="link-9" class="py-name" targets="Variable routerdefense.main.config=routerdefense.main-module.html#config"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-9', 'config', 'link-9');">config</a></tt> <tt class="py-op">=</tt> <tt class="py-name">ConfigParser</tt><tt class="py-op">.</tt><tt class="py-name">ConfigParser</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">    <tt id="link-10" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-10', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">read</tt><tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">.</tt><tt class="py-name">templateFile</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">iosVersion</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-11', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'engine'</tt>   <tt class="py-op">,</tt> <tt class="py-string">'iosversion'</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">deviceType</tt> <tt class="py-op">=</tt> <tt id="link-12" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-12', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'engine'</tt>   <tt class="py-op">,</tt> <tt class="py-string">'platform'</tt><tt class="py-op">)</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">    <tt id="link-13" class="py-name" targets="Variable routerdefense.main.IP4outbound=routerdefense.main-module.html#IP4outbound"><a title="routerdefense.main.IP4outbound" class="py-name" href="#" onclick="return doclink('link-13', 'IP4outbound', 'link-13');">IP4outbound</a></tt>            <tt class="py-op">=</tt> <tt id="link-14" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-14', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'engine'</tt>   <tt class="py-op">,</tt> <tt class="py-string">'IP4outbound'</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">    <tt id="link-15" class="py-name" targets="Variable routerdefense.main.IP4inbound=routerdefense.main-module.html#IP4inbound"><a title="routerdefense.main.IP4inbound" class="py-name" href="#" onclick="return doclink('link-15', 'IP4inbound', 'link-15');">IP4inbound</a></tt>             <tt class="py-op">=</tt> <tt id="link-16" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-16', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'engine'</tt>   <tt class="py-op">,</tt> <tt class="py-string">'IP4inbound'</tt><tt class="py-op">)</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">outputType</tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-17', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'reporting'</tt><tt class="py-op">,</tt> <tt class="py-string">'format'</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">outputFile</tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="routerdefense.main.config" class="py-name" href="#" onclick="return doclink('link-18', 'config', 'link-9');">config</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'reporting'</tt><tt class="py-op">,</tt> <tt class="py-string">'filename'</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">ConfigParser</tt><tt class="py-op">.</tt><tt class="py-name">Error</tt><tt class="py-op">:</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-string">"Template arguments: parameters errors."</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt class="py-name">exit</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-19" class="py-name"><a title="routerdefense.main.IP4inbound" class="py-name" href="#" onclick="return doclink('link-19', 'IP4inbound', 'link-15');">IP4inbound</a></tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">    <tt id="link-20" class="py-name" targets="Variable routerdefense.main.netManagement=routerdefense.main-module.html#netManagement"><a title="routerdefense.main.netManagement" class="py-name" href="#" onclick="return doclink('link-20', 'netManagement', 'link-20');">netManagement</a></tt> <tt class="py-op">=</tt> <tt id="link-21" class="py-name"><a title="routerdefense.main.IP4outbound" class="py-name" href="#" onclick="return doclink('link-21', 'IP4outbound', 'link-13');">IP4outbound</a></tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_outbound</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">entry</tt> <tt class="py-keyword">in</tt> <tt id="link-22" class="py-name"><a title="routerdefense.main.netManagement" class="py-name" href="#" onclick="return doclink('link-22', 'netManagement', 'link-20');">netManagement</a></tt><tt class="py-op">:</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-name">entry</tt> <tt class="py-op">=</tt> <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">            <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">'32'</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-23" class="py-name" targets="Function routerdefense.common.dotted_netmask()=routerdefense.common-module.html#dotted_netmask"><a title="routerdefense.common.dotted_netmask" class="py-name" href="#" onclick="return doclink('link-23', 'dotted_netmask', 'link-23');">dotted_netmask</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-24" class="py-name" targets="Function routerdefense.common.netmask_wildcard()=routerdefense.common-module.html#netmask_wildcard"><a title="routerdefense.common.netmask_wildcard" class="py-name" href="#" onclick="return doclink('link-24', 'netmask_wildcard', 'link-24');">netmask_wildcard</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name" targets="Function routerdefense.common.network_address()=routerdefense.common-module.html#network_address"><a title="routerdefense.common.network_address" class="py-name" href="#" onclick="return doclink('link-25', 'network_address', 'link-25');">network_address</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_outbound</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_outbound</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line"> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-26" class="py-name"><a title="routerdefense.main.IP4inbound" class="py-name" href="#" onclick="return doclink('link-26', 'IP4inbound', 'link-15');">IP4inbound</a></tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">    <tt id="link-27" class="py-name" targets="Variable routerdefense.main.netStations=routerdefense.main-module.html#netStations"><a title="routerdefense.main.netStations" class="py-name" href="#" onclick="return doclink('link-27', 'netStations', 'link-27');">netStations</a></tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name"><a title="routerdefense.main.IP4inbound" class="py-name" href="#" onclick="return doclink('link-28', 'IP4inbound', 'link-15');">IP4inbound</a></tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_inbound</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">entry</tt> <tt class="py-keyword">in</tt> <tt id="link-29" class="py-name"><a title="routerdefense.main.netStations" class="py-name" href="#" onclick="return doclink('link-29', 'netStations', 'link-27');">netStations</a></tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-name">entry</tt> <tt class="py-op">=</tt> <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">            <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">'32'</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="routerdefense.common.dotted_netmask" class="py-name" href="#" onclick="return doclink('link-30', 'dotted_netmask', 'link-23');">dotted_netmask</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-31" class="py-name"><a title="routerdefense.common.netmask_wildcard" class="py-name" href="#" onclick="return doclink('link-31', 'netmask_wildcard', 'link-24');">netmask_wildcard</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-name">entry</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="routerdefense.common.network_address" class="py-name" href="#" onclick="return doclink('link-32', 'network_address', 'link-25');">network_address</a></tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">entry</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_inbound</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">entry</tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv4_mgmt_inbound</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt class="py-keyword">print</tt> <tt id="link-33" class="py-name" targets="Function routerdefense.reports.stdout_reporting.stdout_header()=routerdefense.reports.stdout_reporting-module.html#stdout_header"><a title="routerdefense.reports.stdout_reporting.stdout_header" class="py-name" href="#" onclick="return doclink('link-33', 'stdout_header', 'link-33');">stdout_header</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"><tt class="py-comment"># configuration file reading</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt id="link-34" class="py-name" targets="Variable routerdefense.main.lines=routerdefense.main-module.html#lines"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-34', 'lines', 'link-34');">lines</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name" targets="Function routerdefense.common.read_cfg()=routerdefense.common-module.html#read_cfg"><a title="routerdefense.common.read_cfg" class="py-name" href="#" onclick="return doclink('link-35', 'read_cfg', 'link-35');">read_cfg</a></tt><tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">.</tt><tt class="py-name">configurationFile</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">wholeconfig</tt> <tt class="py-op">=</tt> <tt id="link-36" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-36', 'lines', 'link-34');">lines</a></tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line"> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"><tt class="py-comment"># Cisco IOS configuration file type checking</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt id="link-37" class="py-name" targets="Function routerdefense.common.check_cfg()=routerdefense.common-module.html#check_cfg"><a title="routerdefense.common.check_cfg" class="py-name" href="#" onclick="return doclink('link-37', 'check_cfg', 'link-37');">check_cfg</a></tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-38', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name" targets="Function routerdefense.engines.main.addBasicInfo()=routerdefense.engines.main-module.html#addBasicInfo"><a title="routerdefense.engines.main.addBasicInfo" class="py-name" href="#" onclick="return doclink('link-39', 'addBasicInfo', 'link-39');">addBasicInfo</a></tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-40', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-comment"># Add metrics for the Management Plane.</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt id="link-41" class="py-name" targets="Variable routerdefense.main.MgmtPlane=routerdefense.main-module.html#MgmtPlane"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-41', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name"><a title="routerdefense.metrics
routerdefense.metrics.metrics" class="py-name" href="#" onclick="return doclink('link-42', 'metrics', 'link-1');">metrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-comment"># Add metrics for the Control Plane.</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"><tt id="link-43" class="py-name" targets="Variable routerdefense.main.CtrlPlane=routerdefense.main-module.html#CtrlPlane"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-43', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt> <tt class="py-op">=</tt> <tt id="link-44" class="py-name" targets="Class routerdefense.metrics.CPmetrics=routerdefense.metrics.CPmetrics-class.html"><a title="routerdefense.metrics.CPmetrics" class="py-name" href="#" onclick="return doclink('link-44', 'CPmetrics', 'link-44');">CPmetrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt class="py-comment"># Add metrics for the Data Plane.</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt id="link-45" class="py-name" targets="Variable routerdefense.main.DataPlane=routerdefense.main-module.html#DataPlane"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-45', 'DataPlane', 'link-45');">DataPlane</a></tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name" targets="Class routerdefense.metrics.DPmetrics=routerdefense.metrics.DPmetrics-class.html"><a title="routerdefense.metrics.DPmetrics" class="py-name" href="#" onclick="return doclink('link-46', 'DPmetrics', 'link-46');">DPmetrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-comment"># Add metric for the interfaces.</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt id="link-47" class="py-name" targets="Variable routerdefense.main.interfaces=routerdefense.main-module.html#interfaces,Class routerdefense.metrics.interfaces=routerdefense.metrics.interfaces-class.html"><a title="routerdefense.main.interfaces
routerdefense.metrics.interfaces" class="py-name" href="#" onclick="return doclink('link-47', 'interfaces', 'link-47');">interfaces</a></tt> <tt class="py-op">=</tt> <tt id="link-48" class="py-name" targets="Class routerdefense.metrics.IFSmetrics=routerdefense.metrics.IFSmetrics-class.html"><a title="routerdefense.metrics.IFSmetrics" class="py-name" href="#" onclick="return doclink('link-48', 'IFSmetrics', 'link-48');">IFSmetrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt class="py-comment"># Add metric for the IPv4 ACLs.</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt id="link-49" class="py-name" targets="Variable routerdefense.main.AclsV4=routerdefense.main-module.html#AclsV4"><a title="routerdefense.main.AclsV4" class="py-name" href="#" onclick="return doclink('link-49', 'AclsV4', 'link-49');">AclsV4</a></tt> <tt class="py-op">=</tt> <tt id="link-50" class="py-name" targets="Class routerdefense.metrics.ACLV4metrics=routerdefense.metrics.ACLV4metrics-class.html"><a title="routerdefense.metrics.ACLV4metrics" class="py-name" href="#" onclick="return doclink('link-50', 'ACLV4metrics', 'link-50');">ACLV4metrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-comment"># Add metric for the IPv6 ACLs.</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt id="link-51" class="py-name" targets="Variable routerdefense.main.AclsV6=routerdefense.main-module.html#AclsV6"><a title="routerdefense.main.AclsV6" class="py-name" href="#" onclick="return doclink('link-51', 'AclsV6', 'link-51');">AclsV6</a></tt> <tt class="py-op">=</tt> <tt id="link-52" class="py-name" targets="Class routerdefense.metrics.ACLV6metrics=routerdefense.metrics.ACLV6metrics-class.html"><a title="routerdefense.metrics.ACLV6metrics" class="py-name" href="#" onclick="return doclink('link-52', 'ACLV6metrics', 'link-52');">ACLV6metrics</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-comment"># Find interfaces (ifaceCfg).</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt id="link-53" class="py-name" targets="Variable routerdefense.main.ifaceCfg=routerdefense.main-module.html#ifaceCfg"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-53', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt> <tt class="py-op">=</tt> <tt id="link-54" class="py-name" targets="Function routerdefense.common.populate_ifaces()=routerdefense.common-module.html#populate_ifaces"><a title="routerdefense.common.populate_ifaces" class="py-name" href="#" onclick="return doclink('link-54', 'populate_ifaces', 'link-54');">populate_ifaces</a></tt><tt class="py-op">(</tt><tt id="link-55" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-55', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt><tt id="link-56" class="py-name"><a title="routerdefense.main.interfaces
routerdefense.metrics.interfaces" class="py-name" href="#" onclick="return doclink('link-56', 'interfaces', 'link-47');">interfaces</a></tt><tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-57" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-57', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">    <tt id="link-58" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-58', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method routerdefense.metrics.ACLv4.get_metrics_from_config()=routerdefense.metrics.ACLv4-class.html#get_metrics_from_config,Method routerdefense.metrics.ACLv6.get_metrics_from_config()=routerdefense.metrics.ACLv6-class.html#get_metrics_from_config,Method routerdefense.metrics.interfaces.get_metrics_from_config()=routerdefense.metrics.interfaces-class.html#get_metrics_from_config"><a title="routerdefense.metrics.ACLv4.get_metrics_from_config
routerdefense.metrics.ACLv6.get_metrics_from_config
routerdefense.metrics.interfaces.get_metrics_from_config" class="py-name" href="#" onclick="return doclink('link-59', 'get_metrics_from_config', 'link-59');">get_metrics_from_config</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"><tt class="py-comment"># Find IPv4 access-list (aclIPv4).</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt id="link-60" class="py-name" targets="Variable routerdefense.main.aclIPv4=routerdefense.main-module.html#aclIPv4"><a title="routerdefense.main.aclIPv4" class="py-name" href="#" onclick="return doclink('link-60', 'aclIPv4', 'link-60');">aclIPv4</a></tt> <tt class="py-op">=</tt> <tt id="link-61" class="py-name" targets="Function routerdefense.common.populate_acl_v4()=routerdefense.common-module.html#populate_acl_v4"><a title="routerdefense.common.populate_acl_v4" class="py-name" href="#" onclick="return doclink('link-61', 'populate_acl_v4', 'link-61');">populate_acl_v4</a></tt><tt class="py-op">(</tt><tt id="link-62" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-62', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-63" class="py-name"><a title="routerdefense.main.AclsV4" class="py-name" href="#" onclick="return doclink('link-63', 'AclsV4', 'link-49');">AclsV4</a></tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-64" class="py-name"><a title="routerdefense.main.aclIPv4" class="py-name" href="#" onclick="return doclink('link-64', 'aclIPv4', 'link-60');">aclIPv4</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">    <tt id="link-65" class="py-name"><a title="routerdefense.main.aclIPv4" class="py-name" href="#" onclick="return doclink('link-65', 'aclIPv4', 'link-60');">aclIPv4</a></tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="routerdefense.metrics.ACLv4.get_metrics_from_config
routerdefense.metrics.ACLv6.get_metrics_from_config
routerdefense.metrics.interfaces.get_metrics_from_config" class="py-name" href="#" onclick="return doclink('link-66', 'get_metrics_from_config', 'link-59');">get_metrics_from_config</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-comment"># Find IPv6 access-list (aclIPv6).</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt id="link-67" class="py-name" targets="Variable routerdefense.main.aclIPv6=routerdefense.main-module.html#aclIPv6"><a title="routerdefense.main.aclIPv6" class="py-name" href="#" onclick="return doclink('link-67', 'aclIPv6', 'link-67');">aclIPv6</a></tt> <tt class="py-op">=</tt> <tt id="link-68" class="py-name" targets="Function routerdefense.common.populate_acl_v6()=routerdefense.common-module.html#populate_acl_v6"><a title="routerdefense.common.populate_acl_v6" class="py-name" href="#" onclick="return doclink('link-68', 'populate_acl_v6', 'link-68');">populate_acl_v6</a></tt><tt class="py-op">(</tt><tt id="link-69" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-69', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-70" class="py-name"><a title="routerdefense.main.AclsV6" class="py-name" href="#" onclick="return doclink('link-70', 'AclsV6', 'link-51');">AclsV6</a></tt><tt class="py-op">)</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-71" class="py-name"><a title="routerdefense.main.aclIPv6" class="py-name" href="#" onclick="return doclink('link-71', 'aclIPv6', 'link-67');">aclIPv6</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">    <tt id="link-72" class="py-name"><a title="routerdefense.main.aclIPv6" class="py-name" href="#" onclick="return doclink('link-72', 'aclIPv6', 'link-67');">aclIPv6</a></tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="routerdefense.metrics.ACLv4.get_metrics_from_config
routerdefense.metrics.ACLv6.get_metrics_from_config
routerdefense.metrics.interfaces.get_metrics_from_config" class="py-name" href="#" onclick="return doclink('link-73', 'get_metrics_from_config', 'link-59');">get_metrics_from_config</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-comment"># Add generic metrics.</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt id="link-74" class="py-name" targets="Variable routerdefense.main.CdpProtocol=routerdefense.main-module.html#CdpProtocol"><a title="routerdefense.main.CdpProtocol" class="py-name" href="#" onclick="return doclink('link-74', 'CdpProtocol', 'link-74');">CdpProtocol</a></tt>                         <tt class="py-op">=</tt> <tt id="link-75" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-75', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Method routerdefense.metrics.ACLV4metrics.add()=routerdefense.metrics.ACLV4metrics-class.html#add,Method routerdefense.metrics.ACLV6metrics.add()=routerdefense.metrics.ACLV6metrics-class.html#add,Method routerdefense.metrics.CPmetrics.add()=routerdefense.metrics.CPmetrics-class.html#add,Method routerdefense.metrics.DPmetrics.add()=routerdefense.metrics.DPmetrics-class.html#add,Method routerdefense.metrics.metrics.add()=routerdefense.metrics.metrics-class.html#add,Function routerdefense.reports.stdout_reporting.add()=routerdefense.reports.stdout_reporting-module.html#add"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-76', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'cdp'</tt><tt class="py-op">)</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt id="link-77" class="py-name" targets="Variable routerdefense.main.LldpProtocol=routerdefense.main-module.html#LldpProtocol"><a title="routerdefense.main.LldpProtocol" class="py-name" href="#" onclick="return doclink('link-77', 'LldpProtocol', 'link-77');">LldpProtocol</a></tt>                        <tt class="py-op">=</tt> <tt id="link-78" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-78', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-79', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'lldp'</tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">console</tt>                 <tt class="py-op">=</tt> <tt id="link-80" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-80', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-81" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-81', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'consolePort'</tt><tt class="py-op">)</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">aux</tt>                     <tt class="py-op">=</tt> <tt id="link-82" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-82', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-83', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'auxPort'</tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">motd</tt>                    <tt class="py-op">=</tt> <tt id="link-84" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-84', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-85', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'BannerMotd'</tt><tt class="py-op">)</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">banLogin</tt>                <tt class="py-op">=</tt> <tt id="link-86" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-86', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-87', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'BannerLogin'</tt><tt class="py-op">)</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">banExec</tt>                 <tt class="py-op">=</tt> <tt id="link-88" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-88', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-89', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'BannerExec'</tt><tt class="py-op">)</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericServices</tt>         <tt class="py-op">=</tt> <tt id="link-90" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-90', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-91', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'genSvcs'</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">memoryCpu</tt>               <tt class="py-op">=</tt> <tt id="link-92" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-92', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-93', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'memCpu'</tt><tt class="py-op">)</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">exceptionCrashinfo</tt>      <tt class="py-op">=</tt> <tt id="link-94" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-94', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-95', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'exceptions'</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">pwdManagement</tt>           <tt class="py-op">=</tt> <tt id="link-96" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-96', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-97', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'pwdMgmt'</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ManagementProtection</tt>    <tt class="py-op">=</tt> <tt id="link-98" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-98', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-99" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-99', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'MgmtPP'</tt><tt class="py-op">)</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tacacsPlusRedundant</tt>     <tt class="py-op">=</tt> <tt id="link-100" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-100', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-101', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tacacsRed'</tt><tt class="py-op">)</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tacacsPlusAuth</tt>          <tt class="py-op">=</tt> <tt id="link-102" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-102', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-103', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tacacsThe'</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tacacsPlusAuthorization</tt> <tt class="py-op">=</tt> <tt id="link-104" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-104', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-105', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tacacsTho'</tt><tt class="py-op">)</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tacacsPlusAccounting</tt>    <tt class="py-op">=</tt> <tt id="link-106" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-106', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-107', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tacacsAcc'</tt><tt class="py-op">)</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">snmp</tt>                    <tt class="py-op">=</tt> <tt id="link-108" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-108', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-109', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'snmp'</tt><tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">syslog</tt>                  <tt class="py-op">=</tt> <tt id="link-110" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-110', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-111', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'syslog'</tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">archive</tt>                 <tt class="py-op">=</tt> <tt id="link-112" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-112', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-113', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'archive'</tt><tt class="py-op">)</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt id="link-114" class="py-name" targets="Variable routerdefense.main.icmpUnreachable=routerdefense.main-module.html#icmpUnreachable"><a title="routerdefense.main.icmpUnreachable" class="py-name" href="#" onclick="return doclink('link-114', 'icmpUnreachable', 'link-114');">icmpUnreachable</a></tt>                     <tt class="py-op">=</tt> <tt id="link-115" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-115', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-116', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'icmpunreach'</tt><tt class="py-op">)</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"><tt id="link-117" class="py-name" targets="Variable routerdefense.main.proxyArp=routerdefense.main-module.html#proxyArp"><a title="routerdefense.main.proxyArp" class="py-name" href="#" onclick="return doclink('link-117', 'proxyArp', 'link-117');">proxyArp</a></tt>                            <tt class="py-op">=</tt> <tt id="link-118" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-118', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-119', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'proxyarp'</tt><tt class="py-op">)</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ntp</tt>                     <tt class="py-op">=</tt> <tt id="link-120" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-120', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-121', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ntp'</tt><tt class="py-op">)</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tcp</tt>                     <tt class="py-op">=</tt> <tt id="link-122" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-122', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-123', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tcp'</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line"> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line"><tt class="py-comment"># Launch generic engines.</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"><tt id="link-124" class="py-name" targets="Function routerdefense.engines.layer2.engine_cdp()=routerdefense.engines.layer2-module.html#engine_cdp"><a title="routerdefense.engines.layer2.engine_cdp" class="py-name" href="#" onclick="return doclink('link-124', 'engine_cdp', 'link-124');">engine_cdp</a></tt><tt class="py-op">(</tt><tt id="link-125" class="py-name"><a title="routerdefense.main.CdpProtocol" class="py-name" href="#" onclick="return doclink('link-125', 'CdpProtocol', 'link-74');">CdpProtocol</a></tt><tt class="py-op">,</tt> <tt id="link-126" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-126', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-127" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-127', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line"><tt id="link-128" class="py-name" targets="Function routerdefense.engines.layer2.engine_lldp()=routerdefense.engines.layer2-module.html#engine_lldp"><a title="routerdefense.engines.layer2.engine_lldp" class="py-name" href="#" onclick="return doclink('link-128', 'engine_lldp', 'link-128');">engine_lldp</a></tt><tt class="py-op">(</tt><tt id="link-129" class="py-name"><a title="routerdefense.main.LldpProtocol" class="py-name" href="#" onclick="return doclink('link-129', 'LldpProtocol', 'link-77');">LldpProtocol</a></tt><tt class="py-op">,</tt> <tt id="link-130" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-130', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-131" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-131', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"><tt id="link-132" class="py-name" targets="Function routerdefense.engines.main.engine_snmp()=routerdefense.engines.main-module.html#engine_snmp"><a title="routerdefense.engines.main.engine_snmp" class="py-name" href="#" onclick="return doclink('link-132', 'engine_snmp', 'link-132');">engine_snmp</a></tt><tt class="py-op">(</tt><tt id="link-133" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-133', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">snmp</tt><tt class="py-op">)</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt id="link-134" class="py-name" targets="Function routerdefense.engines.main.engine_syslog()=routerdefense.engines.main-module.html#engine_syslog"><a title="routerdefense.engines.main.engine_syslog" class="py-name" href="#" onclick="return doclink('link-134', 'engine_syslog', 'link-134');">engine_syslog</a></tt><tt class="py-op">(</tt><tt id="link-135" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-135', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">syslog</tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"><tt id="link-136" class="py-name" targets="Function routerdefense.engines.main.engine_archive()=routerdefense.engines.main-module.html#engine_archive"><a title="routerdefense.engines.main.engine_archive" class="py-name" href="#" onclick="return doclink('link-136', 'engine_archive', 'link-136');">engine_archive</a></tt><tt class="py-op">(</tt><tt id="link-137" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-137', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">archive</tt><tt class="py-op">)</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"><tt id="link-138" class="py-name" targets="Function routerdefense.engines.main.engine_icmp_unreach()=routerdefense.engines.main-module.html#engine_icmp_unreach"><a title="routerdefense.engines.main.engine_icmp_unreach" class="py-name" href="#" onclick="return doclink('link-138', 'engine_icmp_unreach', 'link-138');">engine_icmp_unreach</a></tt><tt class="py-op">(</tt><tt id="link-139" class="py-name"><a title="routerdefense.main.icmpUnreachable" class="py-name" href="#" onclick="return doclink('link-139', 'icmpUnreachable', 'link-114');">icmpUnreachable</a></tt><tt class="py-op">,</tt> <tt id="link-140" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-140', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-141" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-141', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"><tt id="link-142" class="py-name" targets="Function routerdefense.engines.main.engine_arp_proxy()=routerdefense.engines.main-module.html#engine_arp_proxy"><a title="routerdefense.engines.main.engine_arp_proxy" class="py-name" href="#" onclick="return doclink('link-142', 'engine_arp_proxy', 'link-142');">engine_arp_proxy</a></tt><tt class="py-op">(</tt><tt id="link-143" class="py-name"><a title="routerdefense.main.proxyArp" class="py-name" href="#" onclick="return doclink('link-143', 'proxyArp', 'link-117');">proxyArp</a></tt><tt class="py-op">,</tt> <tt id="link-144" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-144', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-145" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-145', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line"><tt id="link-146" class="py-name" targets="Function routerdefense.engines.main.engine_ntp()=routerdefense.engines.main-module.html#engine_ntp"><a title="routerdefense.engines.main.engine_ntp" class="py-name" href="#" onclick="return doclink('link-146', 'engine_ntp', 'link-146');">engine_ntp</a></tt><tt class="py-op">(</tt><tt id="link-147" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-147', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ntp</tt><tt class="py-op">)</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"><tt id="link-148" class="py-name" targets="Function routerdefense.engines.main.engine_tcp()=routerdefense.engines.main-module.html#engine_tcp"><a title="routerdefense.engines.main.engine_tcp" class="py-name" href="#" onclick="return doclink('link-148', 'engine_tcp', 'link-148');">engine_tcp</a></tt><tt class="py-op">(</tt><tt id="link-149" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-149', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tcp</tt><tt class="py-op">)</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line"><tt id="link-150" class="py-name" targets="Function routerdefense.engines.main.engine_services()=routerdefense.engines.main-module.html#engine_services"><a title="routerdefense.engines.main.engine_services" class="py-name" href="#" onclick="return doclink('link-150', 'engine_services', 'link-150');">engine_services</a></tt><tt class="py-op">(</tt><tt id="link-151" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-151', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">genericServices</tt><tt class="py-op">)</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"><tt id="link-152" class="py-name" targets="Function routerdefense.engines.main.engine_mem_cpu()=routerdefense.engines.main-module.html#engine_mem_cpu"><a title="routerdefense.engines.main.engine_mem_cpu" class="py-name" href="#" onclick="return doclink('link-152', 'engine_mem_cpu', 'link-152');">engine_mem_cpu</a></tt><tt class="py-op">(</tt><tt id="link-153" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-153', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">memoryCpu</tt><tt class="py-op">)</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"><tt id="link-154" class="py-name" targets="Function routerdefense.engines.main.engine_crashinfo()=routerdefense.engines.main-module.html#engine_crashinfo"><a title="routerdefense.engines.main.engine_crashinfo" class="py-name" href="#" onclick="return doclink('link-154', 'engine_crashinfo', 'link-154');">engine_crashinfo</a></tt><tt class="py-op">(</tt><tt id="link-155" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-155', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">exceptionCrashinfo</tt><tt class="py-op">)</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line"><tt id="link-156" class="py-name" targets="Function routerdefense.engines.main.engine_password_management()=routerdefense.engines.main-module.html#engine_password_management"><a title="routerdefense.engines.main.engine_password_management" class="py-name" href="#" onclick="return doclink('link-156', 'engine_password_management', 'link-156');">engine_password_management</a></tt><tt class="py-op">(</tt><tt id="link-157" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-157', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">pwdManagement</tt><tt class="py-op">)</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-comment"># motd banner</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt id="link-158" class="py-name" targets="Variable routerdefense.main.bannerMotd=routerdefense.main-module.html#bannerMotd"><a title="routerdefense.main.bannerMotd" class="py-name" href="#" onclick="return doclink('link-158', 'bannerMotd', 'link-158');">bannerMotd</a></tt> <tt class="py-op">=</tt> <tt id="link-159" class="py-name" targets="Function routerdefense.common.parse_motd()=routerdefense.common-module.html#parse_motd"><a title="routerdefense.common.parse_motd" class="py-name" href="#" onclick="return doclink('link-159', 'parse_motd', 'link-159');">parse_motd</a></tt><tt class="py-op">(</tt><tt id="link-160" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-160', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt id="link-161" class="py-name" targets="Function routerdefense.engines.main.engine_banner()=routerdefense.engines.main-module.html#engine_banner"><a title="routerdefense.engines.main.engine_banner" class="py-name" href="#" onclick="return doclink('link-161', 'engine_banner', 'link-161');">engine_banner</a></tt><tt class="py-op">(</tt><tt id="link-162" class="py-name"><a title="routerdefense.main.bannerMotd" class="py-name" href="#" onclick="return doclink('link-162', 'bannerMotd', 'link-158');">bannerMotd</a></tt><tt class="py-op">,</tt> <tt class="py-name">motd</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-comment"># login banner</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt id="link-163" class="py-name" targets="Variable routerdefense.main.bannerLogin=routerdefense.main-module.html#bannerLogin"><a title="routerdefense.main.bannerLogin" class="py-name" href="#" onclick="return doclink('link-163', 'bannerLogin', 'link-163');">bannerLogin</a></tt> <tt class="py-op">=</tt> <tt id="link-164" class="py-name" targets="Function routerdefense.common.parse_login_banner()=routerdefense.common-module.html#parse_login_banner"><a title="routerdefense.common.parse_login_banner" class="py-name" href="#" onclick="return doclink('link-164', 'parse_login_banner', 'link-164');">parse_login_banner</a></tt><tt class="py-op">(</tt><tt id="link-165" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-165', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt id="link-166" class="py-name"><a title="routerdefense.engines.main.engine_banner" class="py-name" href="#" onclick="return doclink('link-166', 'engine_banner', 'link-161');">engine_banner</a></tt><tt class="py-op">(</tt><tt id="link-167" class="py-name"><a title="routerdefense.main.bannerLogin" class="py-name" href="#" onclick="return doclink('link-167', 'bannerLogin', 'link-163');">bannerLogin</a></tt><tt class="py-op">,</tt> <tt class="py-name">banLogin</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"><tt class="py-comment"># exec banner</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt id="link-168" class="py-name" targets="Variable routerdefense.main.bannerExec=routerdefense.main-module.html#bannerExec"><a title="routerdefense.main.bannerExec" class="py-name" href="#" onclick="return doclink('link-168', 'bannerExec', 'link-168');">bannerExec</a></tt> <tt class="py-op">=</tt> <tt id="link-169" class="py-name" targets="Function routerdefense.common.parse_exec_banner()=routerdefense.common-module.html#parse_exec_banner"><a title="routerdefense.common.parse_exec_banner" class="py-name" href="#" onclick="return doclink('link-169', 'parse_exec_banner', 'link-169');">parse_exec_banner</a></tt><tt class="py-op">(</tt><tt id="link-170" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-170', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"><tt id="link-171" class="py-name"><a title="routerdefense.engines.main.engine_banner" class="py-name" href="#" onclick="return doclink('link-171', 'engine_banner', 'link-161');">engine_banner</a></tt><tt class="py-op">(</tt><tt id="link-172" class="py-name"><a title="routerdefense.main.bannerExec" class="py-name" href="#" onclick="return doclink('link-172', 'bannerExec', 'link-168');">bannerExec</a></tt><tt class="py-op">,</tt> <tt class="py-name">banExec</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"><tt class="py-comment"># console port</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"><tt id="link-173" class="py-name" targets="Variable routerdefense.main.consoleCfg=routerdefense.main-module.html#consoleCfg"><a title="routerdefense.main.consoleCfg" class="py-name" href="#" onclick="return doclink('link-173', 'consoleCfg', 'link-173');">consoleCfg</a></tt> <tt class="py-op">=</tt> <tt id="link-174" class="py-name" targets="Function routerdefense.common.parse_console()=routerdefense.common-module.html#parse_console"><a title="routerdefense.common.parse_console" class="py-name" href="#" onclick="return doclink('link-174', 'parse_console', 'link-174');">parse_console</a></tt><tt class="py-op">(</tt><tt id="link-175" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-175', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"><tt id="link-176" class="py-name" targets="Function routerdefense.engines.main.engine_console()=routerdefense.engines.main-module.html#engine_console"><a title="routerdefense.engines.main.engine_console" class="py-name" href="#" onclick="return doclink('link-176', 'engine_console', 'link-176');">engine_console</a></tt><tt class="py-op">(</tt><tt id="link-177" class="py-name"><a title="routerdefense.main.consoleCfg" class="py-name" href="#" onclick="return doclink('link-177', 'consoleCfg', 'link-173');">consoleCfg</a></tt><tt class="py-op">,</tt> <tt class="py-name">console</tt><tt class="py-op">,</tt> <tt id="link-178" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-178', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line"><tt class="py-comment"># aux port</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line"><tt id="link-179" class="py-name" targets="Variable routerdefense.main.auxCfg=routerdefense.main-module.html#auxCfg"><a title="routerdefense.main.auxCfg" class="py-name" href="#" onclick="return doclink('link-179', 'auxCfg', 'link-179');">auxCfg</a></tt> <tt class="py-op">=</tt> <tt id="link-180" class="py-name" targets="Function routerdefense.common.parse_aux()=routerdefense.common-module.html#parse_aux"><a title="routerdefense.common.parse_aux" class="py-name" href="#" onclick="return doclink('link-180', 'parse_aux', 'link-180');">parse_aux</a></tt><tt class="py-op">(</tt><tt id="link-181" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-181', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"><tt id="link-182" class="py-name" targets="Function routerdefense.engines.main.engine_aux()=routerdefense.engines.main-module.html#engine_aux"><a title="routerdefense.engines.main.engine_aux" class="py-name" href="#" onclick="return doclink('link-182', 'engine_aux', 'link-182');">engine_aux</a></tt><tt class="py-op">(</tt><tt id="link-183" class="py-name"><a title="routerdefense.main.auxCfg" class="py-name" href="#" onclick="return doclink('link-183', 'auxCfg', 'link-179');">auxCfg</a></tt><tt class="py-op">,</tt><tt class="py-name">aux</tt><tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"><tt class="py-comment"># vty</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"><tt id="link-184" class="py-name" targets="Variable routerdefense.main.vtyCfg=routerdefense.main-module.html#vtyCfg"><a title="routerdefense.main.vtyCfg" class="py-name" href="#" onclick="return doclink('link-184', 'vtyCfg', 'link-184');">vtyCfg</a></tt> <tt class="py-op">=</tt> <tt id="link-185" class="py-name" targets="Function routerdefense.common.parse_vty()=routerdefense.common-module.html#parse_vty"><a title="routerdefense.common.parse_vty" class="py-name" href="#" onclick="return doclink('link-185', 'parse_vty', 'link-185');">parse_vty</a></tt><tt class="py-op">(</tt><tt id="link-186" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-186', 'lines', 'link-34');">lines</a></tt><tt class="py-op">)</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">vtyList</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-187" class="py-name"><a title="routerdefense.main.vtyCfg" class="py-name" href="#" onclick="return doclink('link-187', 'vtyCfg', 'link-184');">vtyCfg</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">vtyList</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-188" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-188', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-189" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-189', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'vtyPort'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">vtyList</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">sessionNumbers</tt> <tt class="py-op">=</tt> <tt id="link-190" class="py-name"><a title="routerdefense.main.vtyCfg" class="py-name" href="#" onclick="return doclink('link-190', 'vtyCfg', 'link-184');">vtyCfg</a></tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">vtyList</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">    <tt id="link-191" class="py-name" targets="Function routerdefense.engines.main.engine_vty()=routerdefense.engines.main-module.html#engine_vty"><a title="routerdefense.engines.main.engine_vty" class="py-name" href="#" onclick="return doclink('link-191', 'engine_vty', 'link-191');">engine_vty</a></tt><tt class="py-op">(</tt><tt id="link-192" class="py-name"><a title="routerdefense.main.vtyCfg" class="py-name" href="#" onclick="return doclink('link-192', 'vtyCfg', 'link-184');">vtyCfg</a></tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">vtyList</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line"><tt id="link-193" class="py-name" targets="Function routerdefense.engines.main.engine_mpp()=routerdefense.engines.main-module.html#engine_mpp"><a title="routerdefense.engines.main.engine_mpp" class="py-name" href="#" onclick="return doclink('link-193', 'engine_mpp', 'link-193');">engine_mpp</a></tt><tt class="py-op">(</tt><tt id="link-194" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-194', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">vtyList</tt><tt class="py-op">,</tt> <tt id="link-195" class="py-name"><a title="routerdefense.main.vtyCfg" class="py-name" href="#" onclick="return doclink('link-195', 'vtyCfg', 'link-184');">vtyCfg</a></tt><tt class="py-op">,</tt> <tt class="py-name">ManagementProtection</tt><tt class="py-op">)</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line"><tt class="py-comment"># AAA redundancy</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line"><tt id="link-196" class="py-name" targets="Variable routerdefense.main.mode=routerdefense.main-module.html#mode"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-196', 'mode', 'link-196');">mode</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'RedundantAAA'</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line"><tt id="link-197" class="py-name" targets="Function routerdefense.engines.main.engine_tacacs()=routerdefense.engines.main-module.html#engine_tacacs"><a title="routerdefense.engines.main.engine_tacacs" class="py-name" href="#" onclick="return doclink('link-197', 'engine_tacacs', 'link-197');">engine_tacacs</a></tt><tt class="py-op">(</tt><tt id="link-198" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-198', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tacacsPlusRedundant</tt><tt class="py-op">,</tt> <tt id="link-199" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-199', 'mode', 'link-196');">mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"><tt class="py-comment"># AAA authentication</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line"><tt id="link-200" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-200', 'mode', 'link-196');">mode</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Authentication'</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line"><tt id="link-201" class="py-name"><a title="routerdefense.engines.main.engine_tacacs" class="py-name" href="#" onclick="return doclink('link-201', 'engine_tacacs', 'link-197');">engine_tacacs</a></tt><tt class="py-op">(</tt><tt id="link-202" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-202', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tacacsPlusAuth</tt><tt class="py-op">,</tt> <tt id="link-203" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-203', 'mode', 'link-196');">mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line"> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line"><tt class="py-comment"># AAA authorization</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line"><tt id="link-204" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-204', 'mode', 'link-196');">mode</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Authorization'</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line"><tt id="link-205" class="py-name"><a title="routerdefense.engines.main.engine_tacacs" class="py-name" href="#" onclick="return doclink('link-205', 'engine_tacacs', 'link-197');">engine_tacacs</a></tt><tt class="py-op">(</tt><tt id="link-206" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-206', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tacacsPlusAuthorization</tt><tt class="py-op">,</tt> <tt id="link-207" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-207', 'mode', 'link-196');">mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line"> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line"><tt class="py-comment"># AAA accounting</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"><tt id="link-208" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-208', 'mode', 'link-196');">mode</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'Accounting'</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"><tt id="link-209" class="py-name"><a title="routerdefense.engines.main.engine_tacacs" class="py-name" href="#" onclick="return doclink('link-209', 'engine_tacacs', 'link-197');">engine_tacacs</a></tt><tt class="py-op">(</tt><tt id="link-210" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-210', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tacacsPlusAccounting</tt><tt class="py-op">,</tt> <tt id="link-211" class="py-name"><a title="routerdefense.main.mode" class="py-name" href="#" onclick="return doclink('link-211', 'mode', 'link-196');">mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line"> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line"><tt class="py-comment"># If device is a router or a multilayer switch.</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">deviceType</tt>  <tt class="py-op">==</tt> <tt class="py-string">'router'</tt> <tt class="py-keyword">or</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">deviceType</tt> <tt class="py-op">==</tt> <tt class="py-string">'both'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line"> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">bgp</tt>        <tt class="py-op">=</tt> <tt id="link-212" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-212', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-213" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-213', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'bgp'</tt><tt class="py-op">)</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">eigrp</tt>      <tt class="py-op">=</tt> <tt id="link-214" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-214', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-215" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-215', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'eigrp'</tt><tt class="py-op">)</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">rip</tt>        <tt class="py-op">=</tt> <tt id="link-216" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-216', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-217" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-217', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'rip'</tt><tt class="py-op">)</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ospf</tt>       <tt class="py-op">=</tt> <tt id="link-218" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-218', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-219" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-219', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ospf'</tt><tt class="py-op">)</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">glbp</tt>       <tt class="py-op">=</tt> <tt id="link-220" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-220', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-221" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-221', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'glbp'</tt><tt class="py-op">)</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">hsrp</tt>       <tt class="py-op">=</tt> <tt id="link-222" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-222', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-223" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-223', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'hsrp'</tt><tt class="py-op">)</tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">vrrp</tt>       <tt class="py-op">=</tt> <tt id="link-224" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-224', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-225" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-225', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'vrrp'</tt><tt class="py-op">)</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">    <tt id="link-226" class="py-name" targets="Variable routerdefense.main.icmpRedirects=routerdefense.main-module.html#icmpRedirects"><a title="routerdefense.main.icmpRedirects" class="py-name" href="#" onclick="return doclink('link-226', 'icmpRedirects', 'link-226');">icmpRedirects</a></tt>          <tt class="py-op">=</tt> <tt id="link-227" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-227', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-228" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-228', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'icmpredirects'</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipoptions</tt>  <tt class="py-op">=</tt> <tt id="link-229" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-229', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-230" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-230', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ipoptions'</tt><tt class="py-op">)</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipsrcroute</tt> <tt class="py-op">=</tt> <tt id="link-231" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-231', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-232" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-232', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ipsourceroute'</tt><tt class="py-op">)</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">denyicmp</tt>   <tt class="py-op">=</tt> <tt id="link-233" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-233', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-234" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-234', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'denyIcmpAnyAny'</tt><tt class="py-op">)</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipfrags</tt>    <tt class="py-op">=</tt> <tt id="link-235" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-235', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-236" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-236', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'IPfragments'</tt><tt class="py-op">)</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">urpf</tt>       <tt class="py-op">=</tt> <tt id="link-237" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-237', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-238" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-238', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'urpf'</tt><tt class="py-op">)</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">netflow</tt>    <tt class="py-op">=</tt> <tt id="link-239" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-239', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-240" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-240', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'netflow'</tt><tt class="py-op">)</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">tclsh</tt> <tt class="py-op">=</tt> <tt id="link-241" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-241', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-242" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-242', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'tclsh'</tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line"> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">    <tt id="link-243" class="py-name" targets="Function routerdefense.engines.routing_protocols.engine_bgp()=routerdefense.engines.routing_protocols-module.html#engine_bgp"><a title="routerdefense.engines.routing_protocols.engine_bgp" class="py-name" href="#" onclick="return doclink('link-243', 'engine_bgp', 'link-243');">engine_bgp</a></tt><tt class="py-op">(</tt><tt id="link-244" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-244', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">bgp</tt><tt class="py-op">,</tt> <tt id="link-245" class="py-name"><a title="routerdefense.main.aclIPv4" class="py-name" href="#" onclick="return doclink('link-245', 'aclIPv4', 'link-60');">aclIPv4</a></tt><tt class="py-op">)</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">    <tt id="link-246" class="py-name" targets="Function routerdefense.engines.routing_protocols.engine_eigrp()=routerdefense.engines.routing_protocols-module.html#engine_eigrp"><a title="routerdefense.engines.routing_protocols.engine_eigrp" class="py-name" href="#" onclick="return doclink('link-246', 'engine_eigrp', 'link-246');">engine_eigrp</a></tt><tt class="py-op">(</tt><tt id="link-247" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-247', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">eigrp</tt><tt class="py-op">,</tt> <tt id="link-248" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-248', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">    <tt id="link-249" class="py-name" targets="Function routerdefense.engines.routing_protocols.engine_rip()=routerdefense.engines.routing_protocols-module.html#engine_rip"><a title="routerdefense.engines.routing_protocols.engine_rip" class="py-name" href="#" onclick="return doclink('link-249', 'engine_rip', 'link-249');">engine_rip</a></tt><tt class="py-op">(</tt><tt id="link-250" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-250', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">rip</tt><tt class="py-op">,</tt> <tt id="link-251" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-251', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">    <tt id="link-252" class="py-name" targets="Function routerdefense.engines.routing_protocols.engine_ospf()=routerdefense.engines.routing_protocols-module.html#engine_ospf"><a title="routerdefense.engines.routing_protocols.engine_ospf" class="py-name" href="#" onclick="return doclink('link-252', 'engine_ospf', 'link-252');">engine_ospf</a></tt><tt class="py-op">(</tt><tt id="link-253" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-253', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ospf</tt><tt class="py-op">,</tt> <tt id="link-254" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-254', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">    <tt id="link-255" class="py-name" targets="Function routerdefense.engines.fhrp.engine_glbp()=routerdefense.engines.fhrp-module.html#engine_glbp"><a title="routerdefense.engines.fhrp.engine_glbp" class="py-name" href="#" onclick="return doclink('link-255', 'engine_glbp', 'link-255');">engine_glbp</a></tt><tt class="py-op">(</tt><tt id="link-256" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-256', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">glbp</tt><tt class="py-op">,</tt> <tt id="link-257" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-257', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">    <tt id="link-258" class="py-name" targets="Function routerdefense.engines.fhrp.engine_hsrp()=routerdefense.engines.fhrp-module.html#engine_hsrp"><a title="routerdefense.engines.fhrp.engine_hsrp" class="py-name" href="#" onclick="return doclink('link-258', 'engine_hsrp', 'link-258');">engine_hsrp</a></tt><tt class="py-op">(</tt><tt id="link-259" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-259', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">hsrp</tt><tt class="py-op">,</tt> <tt id="link-260" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-260', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">    <tt id="link-261" class="py-name" targets="Function routerdefense.engines.fhrp.engine_vrrp()=routerdefense.engines.fhrp-module.html#engine_vrrp"><a title="routerdefense.engines.fhrp.engine_vrrp" class="py-name" href="#" onclick="return doclink('link-261', 'engine_vrrp', 'link-261');">engine_vrrp</a></tt><tt class="py-op">(</tt><tt id="link-262" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-262', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">vrrp</tt><tt class="py-op">,</tt> <tt id="link-263" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-263', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">    <tt id="link-264" class="py-name" targets="Function routerdefense.engines.main.engine_icmp_redirects()=routerdefense.engines.main-module.html#engine_icmp_redirects"><a title="routerdefense.engines.main.engine_icmp_redirects" class="py-name" href="#" onclick="return doclink('link-264', 'engine_icmp_redirects', 'link-264');">engine_icmp_redirects</a></tt><tt class="py-op">(</tt><tt id="link-265" class="py-name"><a title="routerdefense.main.icmpRedirects" class="py-name" href="#" onclick="return doclink('link-265', 'icmpRedirects', 'link-226');">icmpRedirects</a></tt><tt class="py-op">,</tt> <tt id="link-266" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-266', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-267" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-267', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">    <tt id="link-268" class="py-name" targets="Function routerdefense.engines.main.engine_ip_options()=routerdefense.engines.main-module.html#engine_ip_options"><a title="routerdefense.engines.main.engine_ip_options" class="py-name" href="#" onclick="return doclink('link-268', 'engine_ip_options', 'link-268');">engine_ip_options</a></tt><tt class="py-op">(</tt><tt id="link-269" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-269', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ipoptions</tt><tt class="py-op">)</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">    <tt id="link-270" class="py-name" targets="Function routerdefense.engines.main.engine_ip_src_route()=routerdefense.engines.main-module.html#engine_ip_src_route"><a title="routerdefense.engines.main.engine_ip_src_route" class="py-name" href="#" onclick="return doclink('link-270', 'engine_ip_src_route', 'link-270');">engine_ip_src_route</a></tt><tt class="py-op">(</tt><tt id="link-271" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-271', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ipsrcroute</tt><tt class="py-op">)</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">    <tt id="link-272" class="py-name" targets="Function routerdefense.engines.main.engine_icmp_deny()=routerdefense.engines.main-module.html#engine_icmp_deny"><a title="routerdefense.engines.main.engine_icmp_deny" class="py-name" href="#" onclick="return doclink('link-272', 'engine_icmp_deny', 'link-272');">engine_icmp_deny</a></tt><tt class="py-op">(</tt><tt id="link-273" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-273', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">denyicmp</tt><tt class="py-op">)</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">    <tt id="link-274" class="py-name" targets="Function routerdefense.engines.main.engine_ipfrags()=routerdefense.engines.main-module.html#engine_ipfrags"><a title="routerdefense.engines.main.engine_ipfrags" class="py-name" href="#" onclick="return doclink('link-274', 'engine_ipfrags', 'link-274');">engine_ipfrags</a></tt><tt class="py-op">(</tt><tt id="link-275" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-275', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ipfrags</tt><tt class="py-op">)</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">    <tt id="link-276" class="py-name" targets="Function routerdefense.engines.main.engine_urpf()=routerdefense.engines.main-module.html#engine_urpf"><a title="routerdefense.engines.main.engine_urpf" class="py-name" href="#" onclick="return doclink('link-276', 'engine_urpf', 'link-276');">engine_urpf</a></tt><tt class="py-op">(</tt><tt id="link-277" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-277', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">urpf</tt><tt class="py-op">,</tt> <tt id="link-278" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-278', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">    <tt id="link-279" class="py-name" targets="Function routerdefense.engines.main.engine_netflow()=routerdefense.engines.main-module.html#engine_netflow"><a title="routerdefense.engines.main.engine_netflow" class="py-name" href="#" onclick="return doclink('link-279', 'engine_netflow', 'link-279');">engine_netflow</a></tt><tt class="py-op">(</tt><tt id="link-280" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-280', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">netflow</tt><tt class="py-op">,</tt> <tt id="link-281" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-281', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">    <tt id="link-282" class="py-name" targets="Function routerdefense.engines.main.engine_tclsh()=routerdefense.engines.main-module.html#engine_tclsh"><a title="routerdefense.engines.main.engine_tclsh" class="py-name" href="#" onclick="return doclink('link-282', 'engine_tclsh', 'link-282');">engine_tclsh</a></tt><tt class="py-op">(</tt><tt id="link-283" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-283', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">tclsh</tt><tt class="py-op">)</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line"> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">    <tt class="py-comment"># multicast</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt><tt class="py-op">.</tt><tt id="link-284" class="py-name" targets="Module routerdefense.engines.multicast=routerdefense.engines.multicast-module.html"><a title="routerdefense.engines.multicast" class="py-name" href="#" onclick="return doclink('link-284', 'multicast', 'link-284');">multicast</a></tt> <tt class="py-op">==</tt> <tt class="py-string">"Enabled"</tt><tt class="py-op">:</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt id="link-285" class="py-name"><a title="routerdefense.engines.multicast" class="py-name" href="#" onclick="return doclink('link-285', 'multicast', 'link-284');">multicast</a></tt> <tt class="py-op">=</tt> <tt id="link-286" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-286', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-287', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'multicast'</tt><tt class="py-op">)</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">        <tt id="link-288" class="py-name" targets="Function routerdefense.engines.multicast.engine_multicast()=routerdefense.engines.multicast-module.html#engine_multicast"><a title="routerdefense.engines.multicast.engine_multicast" class="py-name" href="#" onclick="return doclink('link-288', 'engine_multicast', 'link-288');">engine_multicast</a></tt><tt class="py-op">(</tt><tt id="link-289" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-289', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt id="link-290" class="py-name"><a title="routerdefense.engines.multicast" class="py-name" href="#" onclick="return doclink('link-290', 'multicast', 'link-284');">multicast</a></tt><tt class="py-op">)</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line"> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">    <tt class="py-comment"># qos</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt><tt class="py-op">.</tt><tt class="py-name">qos</tt> <tt class="py-op">==</tt> <tt class="py-string">"Enabled"</tt><tt class="py-op">:</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">qos</tt> <tt class="py-op">=</tt> <tt id="link-291" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-291', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-292" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-292', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'qos'</tt><tt class="py-op">)</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">        <tt id="link-293" class="py-name" targets="Function routerdefense.engines.main.engine_qos()=routerdefense.engines.main-module.html#engine_qos"><a title="routerdefense.engines.main.engine_qos" class="py-name" href="#" onclick="return doclink('link-293', 'engine_qos', 'link-293');">engine_qos</a></tt><tt class="py-op">(</tt><tt id="link-294" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-294', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">qos</tt><tt class="py-op">,</tt> <tt id="link-295" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-295', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line"> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">    <tt class="py-comment"># IPv6</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt><tt class="py-op">.</tt><tt class="py-name">ipv6</tt> <tt class="py-op">==</tt> <tt class="py-string">"Enabled"</tt><tt class="py-op">:</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">urpfv6</tt> <tt class="py-op">=</tt> <tt id="link-296" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-296', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-297" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-297', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'urpfv6'</tt><tt class="py-op">)</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">        <tt id="link-298" class="py-name" targets="Function routerdefense.engines.main.engine_urpfv6()=routerdefense.engines.main-module.html#engine_urpfv6"><a title="routerdefense.engines.main.engine_urpfv6" class="py-name" href="#" onclick="return doclink('link-298', 'engine_urpfv6', 'link-298');">engine_urpfv6</a></tt><tt class="py-op">(</tt><tt id="link-299" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-299', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">urpfv6</tt><tt class="py-op">,</tt> <tt id="link-300" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-300', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line"> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">    <tt class="py-comment"># IPsec</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt><tt class="py-op">.</tt><tt class="py-name">ipsec</tt> <tt class="py-op">==</tt> <tt class="py-string">"Enabled"</tt><tt class="py-op">:</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipsec</tt> <tt class="py-op">=</tt> <tt id="link-301" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-301', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-302" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-302', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ipsec'</tt><tt class="py-op">)</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">        <tt id="link-303" class="py-name" targets="Function routerdefense.engines.main.engine_ipsec()=routerdefense.engines.main-module.html#engine_ipsec"><a title="routerdefense.engines.main.engine_ipsec" class="py-name" href="#" onclick="return doclink('link-303', 'engine_ipsec', 'link-303');">engine_ipsec</a></tt><tt class="py-op">(</tt><tt id="link-304" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-304', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ipsec</tt><tt class="py-op">)</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line"> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line"><tt class="py-comment"># If device is a switch or a multilayer switch.</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">deviceType</tt>  <tt class="py-op">==</tt> <tt class="py-string">'switch'</tt> <tt class="py-keyword">or</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">deviceType</tt> <tt class="py-op">==</tt> <tt class="py-string">'both'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line"> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">portsecurity</tt> <tt class="py-op">=</tt> <tt id="link-305" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-305', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-306" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-306', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'portsecurity'</tt><tt class="py-op">)</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">    <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">l2protos</tt> <tt class="py-op">=</tt> <tt id="link-307" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-307', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-308" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-308', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'l2protos'</tt><tt class="py-op">)</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line"> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">    <tt id="link-309" class="py-name" targets="Function routerdefense.engines.layer2.engine_port_security()=routerdefense.engines.layer2-module.html#engine_port_security"><a title="routerdefense.engines.layer2.engine_port_security" class="py-name" href="#" onclick="return doclink('link-309', 'engine_port_security', 'link-309');">engine_port_security</a></tt><tt class="py-op">(</tt><tt id="link-310" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-310', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">portsecurity</tt><tt class="py-op">,</tt> <tt id="link-311" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-311', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">    <tt id="link-312" class="py-name" targets="Function routerdefense.engines.layer2.engine_layer2()=routerdefense.engines.layer2-module.html#engine_layer2"><a title="routerdefense.engines.layer2.engine_layer2" class="py-name" href="#" onclick="return doclink('link-312', 'engine_layer2', 'link-312');">engine_layer2</a></tt><tt class="py-op">(</tt><tt id="link-313" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-313', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">l2protos</tt><tt class="py-op">,</tt> <tt id="link-314" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-314', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line"> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line">    <tt class="py-comment"># IPv6</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">genericCfg</tt><tt class="py-op">.</tt><tt class="py-name">ipv6</tt> <tt class="py-op">==</tt> <tt class="py-string">"Enabled"</tt><tt class="py-op">:</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">        <tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">ipv6</tt> <tt class="py-op">=</tt> <tt id="link-315" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-315', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-316" class="py-name"><a title="routerdefense.metrics.ACLV4metrics.add
routerdefense.metrics.ACLV6metrics.add
routerdefense.metrics.CPmetrics.add
routerdefense.metrics.DPmetrics.add
routerdefense.metrics.metrics.add
routerdefense.reports.stdout_reporting.add" class="py-name" href="#" onclick="return doclink('link-316', 'add', 'link-76');">add</a></tt><tt class="py-op">(</tt><tt class="py-string">'ipv6'</tt><tt class="py-op">)</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">        <tt id="link-317" class="py-name" targets="Function routerdefense.engines.main.engine_ipv6()=routerdefense.engines.main-module.html#engine_ipv6"><a title="routerdefense.engines.main.engine_ipv6" class="py-name" href="#" onclick="return doclink('link-317', 'engine_ipv6', 'link-317');">engine_ipv6</a></tt><tt class="py-op">(</tt><tt id="link-318" class="py-name"><a title="routerdefense.main.lines" class="py-name" href="#" onclick="return doclink('link-318', 'lines', 'link-34');">lines</a></tt><tt class="py-op">,</tt> <tt class="py-name">ipv6</tt><tt class="py-op">,</tt> <tt id="link-319" class="py-name"><a title="routerdefense.main.aclIPv6" class="py-name" href="#" onclick="return doclink('link-319', 'aclIPv6', 'link-67');">aclIPv6</a></tt><tt class="py-op">,</tt> <tt id="link-320" class="py-name"><a title="routerdefense.main.ifaceCfg" class="py-name" href="#" onclick="return doclink('link-320', 'ifaceCfg', 'link-53');">ifaceCfg</a></tt><tt class="py-op">)</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line"> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line"><tt class="py-comment"># reporting</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line"><tt id="link-321" class="py-name" targets="Variable routerdefense.main.output=routerdefense.main-module.html#output"><a title="routerdefense.main.output" class="py-name" href="#" onclick="return doclink('link-321', 'output', 'link-321');">output</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">    <tt class="py-string">'stdout'</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-op">:</tt> <tt id="link-322" class="py-name" targets="Function routerdefense.reports.stdout_reporting.stdout_report()=routerdefense.reports.stdout_reporting-module.html#stdout_report"><a title="routerdefense.reports.stdout_reporting.stdout_report" class="py-name" href="#" onclick="return doclink('link-322', 'stdout_report', 'link-322');">stdout_report</a></tt><tt class="py-op">(</tt><tt class="py-name">genericCfg</tt><tt class="py-op">,</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">                                    <tt id="link-323" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-323', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-324" class="py-name" targets="Variable routerdefense.metrics.CPmetrics.metrics_list=routerdefense.metrics.CPmetrics-class.html#metrics_list,Variable routerdefense.metrics.DPmetrics.metrics_list=routerdefense.metrics.DPmetrics-class.html#metrics_list,Variable routerdefense.metrics.metrics.metrics_list=routerdefense.metrics.metrics-class.html#metrics_list"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-324', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">                                    <tt id="link-325" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-325', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-326" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-326', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">                                    <tt id="link-327" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-327', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-328" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-328', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line"> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">    <tt class="py-string">'csv'</tt>   <tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-op">:</tt> <tt id="link-329" class="py-name" targets="Function routerdefense.reports.csv_reporting.csvReport()=routerdefense.reports.csv_reporting-module.html#csvReport"><a title="routerdefense.reports.csv_reporting.csvReport" class="py-name" href="#" onclick="return doclink('link-329', 'csvReport', 'link-329');">csvReport</a></tt>   <tt class="py-op">(</tt><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">outputFile</tt><tt class="py-op">,</tt> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">                                    <tt id="link-330" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-330', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-331" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-331', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">                                    <tt id="link-332" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-332', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-333" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-333', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">                                    <tt id="link-334" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-334', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-335" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-335', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line"> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">    <tt class="py-string">'html'</tt>  <tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-op">:</tt> <tt id="link-336" class="py-name" targets="Function routerdefense.reports.html_reporting.htmlReport()=routerdefense.reports.html_reporting-module.html#htmlReport"><a title="routerdefense.reports.html_reporting.htmlReport" class="py-name" href="#" onclick="return doclink('link-336', 'htmlReport', 'link-336');">htmlReport</a></tt>  <tt class="py-op">(</tt><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">outputFile</tt><tt class="py-op">,</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">                                    <tt class="py-name">genericCfg</tt><tt class="py-op">,</tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">                                    <tt id="link-337" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-337', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-338" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-338', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">                                    <tt id="link-339" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-339', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-340" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-340', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">                                    <tt id="link-341" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-341', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-342" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-342', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line"> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">    <tt class="py-string">'pdf'</tt>   <tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-op">:</tt> <tt id="link-343" class="py-name" targets="Function routerdefense.reports.pdf_reporting.pdfReport()=routerdefense.reports.pdf_reporting-module.html#pdfReport"><a title="routerdefense.reports.pdf_reporting.pdfReport" class="py-name" href="#" onclick="return doclink('link-343', 'pdfReport', 'link-343');">pdfReport</a></tt>   <tt class="py-op">(</tt><tt class="py-name">__builtin__</tt><tt class="py-op">.</tt><tt class="py-name">outputFile</tt><tt class="py-op">,</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">                                    <tt class="py-name">genericCfg</tt><tt class="py-op">,</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">                                    <tt id="link-344" class="py-name"><a title="routerdefense.main.MgmtPlane" class="py-name" href="#" onclick="return doclink('link-344', 'MgmtPlane', 'link-41');">MgmtPlane</a></tt><tt class="py-op">.</tt><tt id="link-345" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-345', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">                                    <tt id="link-346" class="py-name"><a title="routerdefense.main.CtrlPlane" class="py-name" href="#" onclick="return doclink('link-346', 'CtrlPlane', 'link-43');">CtrlPlane</a></tt><tt class="py-op">.</tt><tt id="link-347" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-347', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">,</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line">                                    <tt id="link-348" class="py-name"><a title="routerdefense.main.DataPlane" class="py-name" href="#" onclick="return doclink('link-348', 'DataPlane', 'link-45');">DataPlane</a></tt><tt class="py-op">.</tt><tt id="link-349" class="py-name"><a title="routerdefense.metrics.CPmetrics.metrics_list
routerdefense.metrics.DPmetrics.metrics_list
routerdefense.metrics.metrics.metrics_list" class="py-name" href="#" onclick="return doclink('link-349', 'metrics_list', 'link-324');">metrics_list</a></tt><tt class="py-op">)</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">    <tt class="py-op">}</tt><tt class="py-op">[</tt><tt class="py-name">outputType</tt><tt class="py-op">]</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line"> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line"><tt class="py-comment"># End of program</tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line"><tt class="py-keyword">print</tt> <tt id="link-350" class="py-name" targets="Function routerdefense.reports.stdout_reporting.stdout_footer()=routerdefense.reports.stdout_reporting-module.html#stdout_footer"><a title="routerdefense.reports.stdout_reporting.stdout_footer" class="py-name" href="#" onclick="return doclink('link-350', 'stdout_footer', 'link-350');">stdout_footer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="routerdefense-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/routerdefense/">routerdefense</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sat Jan 21 12:40:09 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
